const obj = {
  date: [1, 3, 5],
  teachers: {
    '灭霸詹': 'mybatis,Spring,redis,mongodb',
    '郭老师': 'zookeeper,dubbo,SpringBoot,kafka,SpringCloud',
    '江老师': 'fastDFS,rocketMQ,ElasticSearch,project,end'

  },
  details: [
    {
      title: 'mybatis01',
      content: `mybatis原理
          `,
      catg: 'mybatis'
    },
    {
      title: 'mybatis02',
      content: `手写mybatis框架
        `,
      catg: 'mybatis'
    },

    {
      title: 'Spring01',
      content: `Spring
        `,
      catg: 'Spring'

    },

    {
      title: 'Spring02',
      content: 'Spring',
      catg: 'Spring'
    },
    {
      title: 'Spring03',
      content: 'Spring',
      catg: 'Spring'
    },
    {
      title: 'Spring04',
      content: `
          Spring
        `,

      catg: 'Spring'
    },
    {
      title: 'Spring05',
      content: `
          Spring
          `,

      catg: 'Spring'
    },

    {
      title: 'SpringMVC01',
      content: 'SpringMVC',
      catg: 'SpringMVC'

    },
    {
      title: 'SpringMVC02',
      content: 'SpringMVC',
      catg: 'SpringMVC'

    },
    {
      title: 'SpringMVC03',
      content: 'SpringMVC',
      catg: 'SpringMVC'

    },
    {
      title: 'Mysql01',
      content: 'Mysql',
      catg: 'Mysql'

    },
    {
      title: 'Mysql02',
      content: 'Mysql',
      catg: 'Mysql'

    },
    {
      title: 'Mysql03',
      content: 'Mysql',

      catg: 'Mysql'

    },
    {
      title: 'Mysql04',
      content: 'Mysql',
      catg: 'Mysql'

    },
    {
      title: 'Mysql05',
      content: 'Mysql',
      catg: 'Mysql'

    },
    {
      title: 'Mysql06',
      content: 'Mysql',
      catg: 'Mysql'

    },
    {
      title: 'Mysql07',
      content: 'Mysql',
      catg: 'Mysql'

    },
    {
      title: 'redis01',
      content: 'redis',
      catg: 'redis'

    },
    {
      title: 'redis02',
      content: 'redis',
      catg: 'redis'

    },
    {
      title: 'mongodb01',
      content: 'mongodb',
      catg: 'mongodb'

    },
    {
      title: 'zookeeper01',
      content: 'zookeeper',
      catg: 'zookeeper'

    },
    {
      title: 'zookeeper02',
      content: 'zookeeper',
      catg: 'zookeeper'
    },
    {
      title: 'zookeeper03',
      content: 'zookeeper',
      catg: 'zookeeper'
    },
    {
      title: 'zookeeper04',
      content: 'zookeeper',
      catg: 'zookeeper'
    },
    {
      title: 'zookeeper05',
      content: 'zookeeper',
      catg: 'zookeeper'
    },
    {
      title: 'zookeeper06',
      content: 'zookeeper',
      catg: 'zookeeper'
    },
    {
      title: 'zookeeper07',
      content: 'zookeeper',
      catg: 'zookeeper'
    },
    {
      title: 'dubbo01',
      content: 'dubbo',
      catg: 'dubbo'
    },
    {
      title: 'dubbo02',
      content: 'dubbo',
      catg: 'dubbo'
    },
    {
      title: 'dubbo03',
      content: 'dubbo',
      catg: 'dubbo'
    },
    {
      title: 'SpringBoot',
      content: 'SpringBoot',
      catg: 'SpringBoot'
    },
    {
      title: 'kafka01',
      content: 'kafka',
      catg: 'kafka'
    },
    {
      title: 'kafka02',
      content: 'kafka',
      catg: 'kafka'
    },
    {
      title: 'SpringCloud01',
      content: 'SpringCloud',
      catg: 'SpringCloud'
    },
    {
      title: 'SpringCloud02',
      content: 'SpringCloud',
      catg: 'SpringCloud'
    },
    {
      title: 'SpringCloud03',
      content: 'SpringCloud',
      catg: 'SpringCloud'
    },
    {
      title: 'SpringCloud04',
      content: 'SpringCloud',
      catg: 'SpringCloud'
    },
    {
      title: 'SpringCloud05',
      content: 'SpringCloud',
      catg: 'SpringCloud'
    },
    {
      title: 'SpringCloud06',
      content: 'SpringCloud',
      catg: 'SpringCloud'
    },
    {
      title: 'SpringCloud07',
      content: 'SpringCloud',
      catg: 'SpringCloud'
    },
    {
      title: 'fastDFS01',
      content: 'fastDFS',
      catg: 'fastDFS'
    },
    {
      title: 'fastDFS02',
      content: 'fastDFS',
      catg: 'fastDFS'
    },
    {
      title: 'rocketMQ01',
      content: 'rocketMQ',
      catg: 'rocketMQ'
    },
    {
      title: 'rocketMQ02',
      content: 'rocketMQ',
      catg: 'rocketMQ'
    },
    {
      title: 'ElasticSearch01',
      content: 'ElasticSearch',
      catg: 'ElasticSearch'
    },
    {
      title: 'ElasticSearch02',
      content: 'ElasticSearch',
      catg: 'ElasticSearch'
    },
    {
      title: 'ElasticSearch03',
      content: 'ElasticSearch',
      catg: 'ElasticSearch'
    },
    {
      title: '互联网电商项目01',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目02',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目03',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目04',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目05',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目06',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目07',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目08',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目09',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '互联网电商项目10',
      content: '互联网电商项目',
      catg: 'project'
    },
    {
      title: '面试课',
      content: '结课',
      catg: 'end'
    }

  ]
}
const catgTeachers = {}
Object.entries(obj.teachers).forEach(val => {
  const [ name, catg ] = val
  catg.split(',').forEach(v => {
    catgTeachers[v] = name
  })
})
obj.details.map(v => {
  v.teacher = catgTeachers[v.catg]
  return v
})
export default obj
